projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20dc945
)
repo: Squash a gcc `-Wmaybe-uninitialized` warning
author
Colin Walters
<walters@verbum.org>
Mon, 19 Jun 2017 14:54:05 +0000
(10:54 -0400)
committer
Atomic Bot
<atomic-devel@projectatomic.io>
Tue, 20 Jun 2017 22:27:18 +0000
(22:27 +0000)
It's spurious, but unfortunately GCC doesn't currently understand that it will
always be set.
Closes: #943
Approved by: jlebon
src/libostree/ostree-repo.c
patch
|
blob
|
history
diff --git
a/src/libostree/ostree-repo.c
b/src/libostree/ostree-repo.c
index 6bcc8e0d723d6f9b39ef8298527682dbe6246ed4..d1253da5521dffa0b4176340060fc6b9b438c08e 100644
(file)
--- a/
src/libostree/ostree-repo.c
+++ b/
src/libostree/ostree-repo.c
@@
-2683,7
+2683,7
@@
ostree_repo_load_file (OstreeRepo *self,
}
else
{
- int objdir_fd; /* referenced */
+ int objdir_fd
= -1
; /* referenced */
if (!stat_bare_content_object (self, loose_path_buf,
&objdir_fd,
&ret_file_info,